package com.roadjava.GDOUGym.convert;


import com.roadjava.GDOUGym.bean.dto.CompetitionDTO;
import com.roadjava.GDOUGym.bean.dto.GameDTO;
import com.roadjava.GDOUGym.bean.entity.CompetitionDO;
import com.roadjava.GDOUGym.bean.entity.GameDO;
import org.mapstruct.Mapper;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import java.util.List;

@Mapper(componentModel = "spring")
public  abstract class CompetitionConvert {
    @Resource
    private HttpServletRequest httpServletRequest;

    public abstract CompetitionDO dto2do(CompetitionDTO dto);

    public abstract CompetitionDTO Ddo2dto(CompetitionDO competitionDO);

    public abstract List<CompetitionDTO> dos2dtos(List<CompetitionDO> competitionDOS);
}
